package com.ruoyi.yl.consultMange.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.yl.consultMange.domain.YlConsultation;
import com.ruoyi.yl.consultMange.vo.YlConsultationVo;
import com.ruoyi.yl.consultMange.mapper.YlConsultationMapper;
import com.ruoyi.yl.consultMange.service.IYlConsultationService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 咨询Service业务层处理
 *
 * @author Ming
 * @date 2025-10-21
 */
@Service
public class YlConsultationServiceImpl extends ServiceImpl<YlConsultationMapper, YlConsultation> implements IYlConsultationService {

    @Override
    public TableDataInfo<YlConsultationVo> queryList(YlConsultationVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<YlConsultationVo> queryAll(YlConsultationVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public YlConsultationVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
